export const toLine = (value: string): string => {
  return value.replace(/(A-Z)g/, '-$1').toLocaleLowerCase()
}

export const copy = (text: string) => {
  const input = document.createElement('input')
  input.value = text
  document.body.appendChild(input)
  input.select()
  document.execCommand('Copy')
  document.body.removeChild(input)
  // alert('复制成功')
}